Skip to main content

Prediction For Image URL

AutomatR.Nanonets.Activities.PredictionForImageURL

The "Prediction For Image URL" activity in AutomatR is part of the Nanonets OCR activities package, facilitating OCR predictions on an image using the Nanonets OCR model. This activity is designed for processing images from URLs, enhancing automation processes involving optical character recognition.

Properties

NameDescription
Input
Model IDThe ID of the Nanonets OCR model to use for prediction. String variables containing the Nanonets OCR model ID.
Image URLThe image URL of the image on which predictions will be made. String variables containing the image URL.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Prediction For Image URL" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResponseOutputs the detailed response generated by the Nanonets OCR model based on the provided image URL. Variables of type ResultPredictionForImageFile[] to store the OCR prediction results.

How to use:

  1. Drag and drop the "Prediction For Image URL" activity onto the workflow.
  2. Configure the properties by specifying the Nanonets OCR model ID and the image URL for OCR predictions.
  3. Optionally, configure the delay.
  4. Execute the workflow to perform OCR predictions on the specified image URL using the Nanonets OCR model.
  5. Access the detailed OCR prediction results from the output variable "Response" for further processing in the workflow.

Example: Consider an example where the "Prediction For Image URL" activity is used to predict text from an image URL "https://example.com/document.jpg" using the Nanonets OCR model with the ID "xyz123" and a delay of 2 seconds:

Prediction For Image URL:
Display Name: "OCR Prediction URL"
Model ID: "xyz123"
Image URL: "https://example.com/document.jpg"
Delay: 2
Response: ocrPredictionResultsURL

In this example, the activity performs OCR predictions on the image URL "https://example.com/document.jpg" using the Nanonets OCR model with the ID "xyz123". The detailed OCR prediction results are stored in the variable "ocrPredictionResultsURL" for further handling in the workflow.